/*****************************************
**  Nom : CARRUELLE	**
**	Nom du fichier : IA.c				**
**	Description : Programme principal 	**
**				  IA**
**										**
**										**
**	Date : 14/08/2014				    **
**  Statut : In Work					**
*****************************************/

/*****************************************
**  Zone de declaration des includes    **
*****************************************/

#include "struct.h"

/*****************************************
**  Zone de declaration des prototypes  **
*****************************************/

/*****************************************
**  Zone du programme principal         **
*****************************************/


 int main (void)
 {
 	ST_SEG* pSeg;
	
 	pSeg=(ST_SEG*)InitSegmentMemoire("fic", '0', sizeof(ST_SEG));	
 	if(pSeg == NULL)
    printf("************************************\n*********** FATAL ERROR ************\n*********** PROGRAMM IA ************\n************************************\n");
    	
   if(strcmp("3s",pSeg->Difficulty) == 0 )
     sleep(3);
   if(strcmp("2s",pSeg->Difficulty)== 0)
     sleep(2);
   if(strcmp("1s",pSeg->Difficulty) == 0)
     sleep(1);
 
   	if(pSeg->Un_entier == 12)
 		pSeg->Un_entier = 5;
 	else
 		;

 	shmdt(pSeg); 	
 	pSeg = NULL;
 	return 0;
 }
 

